//
//  YTHomeMainCell.h
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/7/10.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YTHomeViewModel.h"

@class YTHomeMainCell;
@protocol YTHomeMainCellDelegate<NSObject>

@required

- (void)loadDataWithTableView:(UITableView *)tableView pullup:(BOOL)pullup idx:(NSInteger)idx;

- (void)showArticleDetail:(YTHomeMainCell *)cell idx:(NSInteger)idx article:(YTHomeArticle *)article;

@end

@interface YTHomeMainCell : UICollectionViewCell
@property(nonatomic ,assign)BOOL isHotView; // 是否热点
@property(nonatomic ,strong)YTHomeBanner *banner;
@property(nonatomic ,strong)NSArray<YTNewFlashModel *> *flash;
@property(nonatomic ,weak)id<YTHomeMainCellDelegate> loadDelegate;
@property(nonatomic ,strong)NSArray<YTHomeArticle *> *list;


- (void)begainReflash;

@end
